package com.qfedu.aunt.commons.controller;


import com.qfedu.aunt.commons.mapper.EmployerEvaluationMapper;
import com.qfedu.aunt.commons.result.R;
import com.qfedu.aunt.commons.service.EmployerEvaluationService;
import com.qfedu.aunt.commons.vo.EmployerEvaluationVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 雇主评价 前端控制器
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
@RestController
@RequestMapping("/aunt/commons/employer/evaluation")
@Api(description = "雇主评价模块",tags = "雇主评价模块")
public class EmployerEvaluationController {

    @Autowired
    private EmployerEvaluationService employerEvaluationService;

    /**
     * 添加雇主评价
     * @param employerEvaluationVo
     * @return
     */
    @ApiOperation(value = "添加雇主评价")
    @ApiImplicitParam(name = "token",value = "用户身份标识",dataType = "string",paramType = "header",required = true)
    @PostMapping("/addEmployerEvaluation")
    public R addEmployerEvaluation(@RequestBody EmployerEvaluationVo employerEvaluationVo, HttpServletRequest req)throws Exception{
        employerEvaluationService.add(employerEvaluationVo,req);
        return R.ok();
    }

}

